package com.deloitte.snap.service;

import com.deloitte.snap.vo.AllMasterVO;

public class AllMasterService {
	DBMasterService dbMasterService = new DBMasterService();
	IconMasterService iconMasterService = new IconMasterService();
	DeliverableMasterService deliverableMasterService = new DeliverableMasterService();
	DocTypeService docTypeService = new DocTypeService();
	HardwareMasterService hardwareMasterService = new HardwareMasterService();
	OSMasterService osMasterService = new OSMasterService();
	ProjectMasterService projectMasterService = new ProjectMasterService();
	ProjectPhaseService projectPhaseService = new ProjectPhaseService();
	SAPSystemMasterService sapSystemMasterService = new SAPSystemMasterService();
	
	public AllMasterVO getAllMasterRecords(){
		AllMasterVO allMasterVO =  new AllMasterVO();
		
		/*
		 *Set all master data 
		 */
		allMasterVO.setDbMasters(dbMasterService.findAllDBMasters());
		allMasterVO.setIconMasters(iconMasterService.findAllIconMasters());
		allMasterVO.setDeliverableMasters(deliverableMasterService.findAllDeliverableMasters());
		allMasterVO.setDocTypes(docTypeService.findAllDocTypes());
		allMasterVO.setHardwareMasters(hardwareMasterService.findAllHardwareMasters());
		allMasterVO.setOsMasters(osMasterService.findAllOSMasters());
		allMasterVO.setProjectMasters(projectMasterService.findAllProjectMasters());
		allMasterVO.setProjectPhases(projectPhaseService.findAllProjectPhases());
		allMasterVO.setSapSystemMasters(sapSystemMasterService.findAllSAPSystemMasters());
		
		return allMasterVO;
	}
}
